home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet multimedia / Grafika i zdjecia / Edytory grafiki rastrowej i wektorowej / Inscape 0.44.1 / Inkscape-0.44.1-1.win32.exe / doc / keys-html.xsl < prev    next >
Extensible Markup Language  |  2006-09-06  |  5KB  |  182 lines

  1. <?xml version="1.0" encoding="utf-8"?> 
  2.  
  3. <xsl:stylesheet
  4.    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  5.    xmlns="http://www.w3.org/1999/xhtml"
  6.    xmlns:k="http://www.inkscape.org/namespaces/keys"
  7.    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
  8.    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
  9.    xmlns:xlink="http://www.w3.org/1999/xlink"
  10.    exclude-result-prefixes="k #default inkscape sodipodi xlink"
  11. >
  12. <xsl:output method="html" encoding="utf-8" indent="no" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/>
  13.  
  14. <xsl:template match="k:root">
  15. <xsl:comment>
  16. Do not edit this file.
  17. It is generated automatically from doc/keys.xml by doc/keys-html.xsl.
  18. </xsl:comment>
  19. <html>
  20. <head>
  21. <title>Inkscape keys and mouse reference</title>
  22. <style type="text/css">
  23. .key {font-weight: bold}
  24. .action {}
  25. .note {padding-left: 50px; font-size: 70%}
  26. h1 {margin-top: 0.5em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em; letter-spacing: -0.02em}
  27. h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em}
  28. </style>
  29. </head>
  30. <body bgcolor="#ffffff">
  31. <xsl:apply-templates select="k:p"/>
  32. <table border ="0" cellspacing="0" cellpadding="4">
  33. <xsl:apply-templates select="k:column"/>
  34. </table>
  35.  
  36.     <p>
  37.       <a href="http://validator.w3.org/check/referer"><img border="0"
  38.           src="http://www.w3.org/Icons/valid-html40"
  39.           alt="Valid HTML 4.0!" height="31" width="88" /></a>
  40.     </p>
  41.  
  42. </body>
  43. </html>
  44. </xsl:template>
  45.  
  46. <xsl:template match="k:p">
  47. <p><xsl:apply-templates/></p>
  48. </xsl:template>
  49.  
  50. <xsl:template match="k:a">
  51. <a href="{@href}"><xsl:apply-templates/></a>
  52. </xsl:template>
  53.  
  54. <xsl:template match="k:root/text() | k:column/text()"/>
  55.  
  56. <xsl:template match="k:column">
  57. <xsl:apply-templates/>
  58. </xsl:template>
  59.  
  60. <xsl:template match="k:section">
  61. <tr><td colspan="3"><h1><xsl:value-of select="@title"/></h1></td></tr>
  62. <xsl:apply-templates/>
  63. </xsl:template>
  64.  
  65. <xsl:template match="k:title">
  66. <tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><h4><xsl:value-of select="text()"/></h4></td></tr>
  67. </xsl:template>
  68.  
  69. <xsl:template match="k:note">
  70. <tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><span class="note"><xsl:value-of select="text()"/></span></td></tr>
  71. </xsl:template>
  72.  
  73. <xsl:template match="k:keys | k:mouse">
  74. <tr bgcolor="{ancestor::k:section/@color}">
  75. <td align="right">
  76. <xsl:choose>
  77. <xsl:when test="count(k:key) = 2">
  78. <span class="key"><xsl:apply-templates select="k:key[1]"/></span>,
  79. <span class="key"><xsl:apply-templates select="k:key[2]"/></span>
  80. </xsl:when>
  81. <xsl:otherwise>
  82. <span class="key"><xsl:apply-templates select="k:key[1]"/></span>
  83. </xsl:otherwise>
  84. </xsl:choose>
  85. </td>
  86. <td>
  87. <span class="action">
  88. <xsl:apply-templates select="k:action"/>
  89. </span>
  90. </td>
  91. </tr>
  92. </xsl:template>
  93.  
  94. <xsl:template match="k:action">
  95. <xsl:apply-templates/>
  96. </xsl:template>
  97.  
  98. <xsl:template match="k:key">
  99. <xsl:apply-templates/>
  100. </xsl:template>
  101.  
  102. <xsl:template match="k:shift">
  103. <xsl:text>Shift+</xsl:text>
  104. </xsl:template>
  105.  
  106. <xsl:template match="k:ctrl">
  107. <xsl:text>Ctrl+</xsl:text>
  108. </xsl:template>
  109.  
  110. <xsl:template match="k:alt">
  111. <xsl:text>Alt+</xsl:text>
  112. </xsl:template>
  113.  
  114. <xsl:template match="k:left">
  115. <xsl:text>Left </xsl:text>
  116. </xsl:template>
  117.  
  118. <xsl:template match="k:right">
  119. <xsl:text>Right </xsl:text>
  120. </xsl:template>
  121.  
  122. <xsl:template match="k:keyf | k:misc | k:misc-wide">
  123. <xsl:value-of select="@f"/>
  124. </xsl:template>
  125.  
  126. <xsl:template match="k:arrows">
  127. <xsl:text>arrows</xsl:text>
  128. </xsl:template>
  129.  
  130. <xsl:template match="k:up">
  131. <xsl:text>Up arrow</xsl:text>
  132. </xsl:template>
  133.  
  134. <xsl:template match="k:down">
  135. <xsl:text>Down arrow</xsl:text>
  136. </xsl:template>
  137.  
  138. <xsl:template match="k:left-arrow">
  139. <xsl:text>Left arrow</xsl:text>
  140. </xsl:template>
  141.  
  142. <xsl:template match="k:right-arrow">
  143. <xsl:text>Right arrow</xsl:text>
  144. </xsl:template>
  145.  
  146. <xsl:template match="k:up-arrow">
  147. <xsl:text>Up arrow</xsl:text>
  148. </xsl:template>
  149.  
  150. <xsl:template match="k:down-arrow">
  151. <xsl:text>Down arrow</xsl:text>
  152. </xsl:template>
  153.  
  154. <xsl:template match="k:wheel">
  155. <xsl:text>mouse wheel</xsl:text>
  156. </xsl:template>
  157.  
  158. <xsl:template match="k:left-drag">
  159. <xsl:text>mouse drag</xsl:text>
  160. </xsl:template>
  161.  
  162. <xsl:template match="k:left-click">
  163. <xsl:text>click</xsl:text>
  164. </xsl:template>
  165.  
  166. <xsl:template match="k:mid-drag">
  167. <xsl:text>middle button drag</xsl:text>
  168. </xsl:template>
  169.  
  170. <xsl:template match="k:mid-click">
  171. <xsl:text>middle click</xsl:text>
  172. </xsl:template>
  173.  
  174. <xsl:template match="k:right-drag">
  175. <xsl:text>right button drag</xsl:text>
  176. </xsl:template>
  177.  
  178. <xsl:template match="k:right-click">
  179. <xsl:text>right click</xsl:text>
  180. </xsl:template>
  181.  
  182. </xsl:stylesheet>